package week3;

import java.util.Scanner;

/**
 * Created by mc on 2017/3/11.
 */
public class test4 {
    public static void main(String[] arge) {
        int[]  number = {1,10,31,37,48,60,70,80};
        int a,b,c,d,m;
        Scanner scanner = new Scanner(System.in);
        System.out.printf("请输入要寻找的指定数字\n");
        m=scanner.nextInt();
        for(a=0;a<9;a=a+1)
        {
            if(number[a]==m)
            {System.out.printf("number[%d]",a);break;}
        }
        if(number[0]!=m&&number[1]!=m&&number[2]!=m&&number[3]!=m&&number[4]!=m&&number[5]!=m&&number[6]!=m&&number[7]!=m&&number[8]!=m)
            System.out.printf("%d",-1);
    }
}
